package com.ruoyi.crm.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 采购订单对象 order_purchase
 *
 * @author ruoyi
 * @date 2021-08-31
 */
public class OrderPurchase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String id;

    /** 采购订单编号 */
    @Excel(name = "采购订单编号")
    private String opNo;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String supplierName;

    /** 供应商联系人电话 */
    @Excel(name = "供应商联系人电话")
    private String contactName;

    /** 签约日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "签约日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date signDate;

    /** 采购负责人 */
    @Excel(name = "采购负责人")
    private String follower;

    /** 顾客产品信息信息 */
    private List<CustomerProduct> customerProductList;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setOpNo(String opNo)
    {
        this.opNo = opNo;
    }

    public String getOpNo()
    {
        return opNo;
    }
    public void setSupplierName(String supplierName)
    {
        this.supplierName = supplierName;
    }

    public String getSupplierName()
    {
        return supplierName;
    }
    public void setContactName(String contactName)
    {
        this.contactName = contactName;
    }

    public String getContactName()
    {
        return contactName;
    }
    public void setSignDate(Date signDate)
    {
        this.signDate = signDate;
    }

    public Date getSignDate()
    {
        return signDate;
    }
    public void setFollower(String follower)
    {
        this.follower = follower;
    }

    public String getFollower()
    {
        return follower;
    }

    public List<CustomerProduct> getCustomerProductList()
    {
        return customerProductList;
    }

    public void setCustomerProductList(List<CustomerProduct> customerProductList)
    {
        this.customerProductList = customerProductList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("opNo", getOpNo())
                .append("supplierName", getSupplierName())
                .append("contactName", getContactName())
                .append("signDate", getSignDate())
                .append("follower", getFollower())
                .append("updateTime", getUpdateTime())
                .append("customerProductList", getCustomerProductList())
                .toString();
    }
}